package com;

import com.service.MyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @User 小菜鸡
 * @Data 2020/5/9
 */
@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext ac = SpringApplication.run(SpringbootApplication.class);
        MyService bean = (MyService)ac.getBean("myService");
        bean.test();
    }
}
